package com.bo.baby2.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-12 12:55
**/


/**
    * 用户账号表
    */
@ApiModel(value="用户账号类")
public class TUserAccount implements Serializable {
    /**
    * 账户id
    */
    @ApiModelProperty(value="账户id")
    private String id;

    /**
    * 用户名
    */
    @ApiModelProperty(value="用户名")
    private String username;

    /**
    * 密码
    */
    @ApiModelProperty(value="密码")
    private String password;

    /**
    * 状态( 0:禁用, 1:正常 )
    */
    @ApiModelProperty(value="状态( 0:禁用, 1:正常 )")
    private Integer accountStatus;

    /**
    * 账户类型( 1:普通用户, 2:运营人员 )
    */
    @ApiModelProperty(value="账户类型( 1:普通用户, 2:运营人员 )")
    private Integer accountType;

    /**
    * 是否完善个人信息( 0:未完善, 1:已完善 )
    */
    @ApiModelProperty(value="是否完善个人信息( 0:未完善, 1:已完善 )")
    private Integer fillUserinfo;

    /**
    * 最后登录时间
    */
    @ApiModelProperty(value="最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private static final long serialVersionUID = -9191823809212854838L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(Integer accountStatus) {
        this.accountStatus = accountStatus;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Integer getFillUserinfo() {
        return fillUserinfo;
    }

    public void setFillUserinfo(Integer fillUserinfo) {
        this.fillUserinfo = fillUserinfo;
    }

    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", accountStatus=").append(accountStatus);
        sb.append(", accountType=").append(accountType);
        sb.append(", fillUserinfo=").append(fillUserinfo);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}